<script >
import AdminHeader from "./components/head/AdminHeader.vue";
import AdminMenu from "./components/AdminMenu.vue";

export default {
  name: "AdminIndex",
  components: {AdminMenu, AdminHeader}
}
</script>

<template>
  <div class="admin-container">
    <el-container>
      <el-header height="60px">
        <admin-header />
      </el-header>
      <el-container>
        <el-aside width="200px">
          <admin-menu />
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped lang="less">
.admin-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.el-container {
  height: 100%;
}

.el-header {
  background-color: #fff;
  border-bottom: solid 1px #e6e6e6;
  padding: 0;
}

.el-aside {
  background-color: #fff;
  border-right: solid 1px #e6e6e6;
}

.el-main {
  padding: 20px;
  background-color: #f5f7fa;
}
</style>
